/**
 * Created by liuzengrong on 2019/8/18.
 */
// @ts-ignore
import modelExtend from 'dva-model-extend';
import BaseModel from '@/components/hyperspace/modules/StandardModule/model';

const Model = {
  namespace: 'userManage',

  state: {
    page: {},
    list: [],
    dataSource: {},
  },

  effects: {},

  reducers: {
    /**
     * 刷新state
     *
     * @param state
     */
    // @ts-ignore
    refreshState(state: any, { payload }) {
      return { ...state, ...payload };
    },
  },
};

export default modelExtend(BaseModel, Model);
